﻿<UserControl x:Class="Caliburn.Metro.Demo.Views.Flyouts.Flyout1View"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             d:DesignHeight="300"
             d:DesignWidth="300"
             mc:Ignorable="d">
    <Grid Margin="24">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="Something above the ScrollPanel" />

        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
            <StackPanel Orientation="Vertical">
                <TextBox Controls:TextboxHelper.Watermark="TextBox 01" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 02" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 03" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 04" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 05" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 06" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 07" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 08" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 09" />
                <TextBox Margin="0,5,0,0" Controls:TextboxHelper.Watermark="TextBox 10" />
            </StackPanel>
        </ScrollViewer>

        <StackPanel Grid.Row="2"
                    Margin="0,5,0,0"
                    Orientation="Horizontal">
            <Button Margin="0,0,10,0" Content="create" />
            <Button Content="cancel" />
        </StackPanel>

    </Grid>
</UserControl>
